﻿using System;

using zijian666.Converts.Core;

namespace zijian666.Converts.Abstractions;

/// <summary>
/// 处理 null 和 <seealso cref="DBNull"/> 转换的接口
/// </summary>
/// <typeparam name="T"></typeparam>
public interface IFromNull<T> : IFrom<DBNull, T>
{
    /// <summary>
    /// 将 null 转为指定类型
    /// </summary>
    /// <param name="context">转换上下文</param>
    ConvertResult<T> FromNull(IConvertContext context);
}
